b0e573
@@ -89,7 +89,7 @@
public static boolean isset(char ch) {
   public static final Pattern JAR_COMPLETE = Pattern.compile(" map \\d+%\\s+reduce \\d+%$");
   public static final Pattern PIG_COMPLETE = Pattern.compile(" \\d+% complete$");
   //looking for map = 100%,  reduce = 100%
-  public static final Pattern HIVE_COMPLETE = Pattern.compile(" map = \\d+%,\\s+reduce = \\d+%$");
+  public static final Pattern HIVE_COMPLETE = Pattern.compile(" map = (\\d+%),\\s+reduce = (\\d+%).*$");
 
   /**
    * Extract the percent complete line from Pig or Jar jobs.
@@ -105,15 +105,7 @@
public static String extractPercentComplete(String line) {
     
     Matcher hive = HIVE_COMPLETE.matcher(line);
     if(hive.find()) {
-      StringBuilder sb = new StringBuilder(hive.group().trim());
-      String[] toRemove = {"= ", ", "};
-      for(String pattern : toRemove) {
-        int pos;
-        while((pos = sb.indexOf(pattern)) >= 0) {
-          sb.delete(pos, pos + pattern.length());
-        }
-      }
-      return sb.toString();//normalized to look like JAR_COMPLETE
+      return "map " + hive.group(1) + " reduce " + hive.group(2);
     }
     return null;
   }
